#ifndef MYUI_H
#define MYUI_H


#include "wx/taskbar.h"
#include "wx/treectrl.h"
#include "wx/statusbr.h"

#include "Control_Pref.h"
#include "ResultNotebook.h"
#include "MyContextMenu.h"
#include "MyTaskBarIcon.h"
#include "ResultNotebook.h"
#include "EditNotebook.h"
//#include "UIThread.h"

//#include "../BLL/bll.h"

class ServerInfo {
public:
	wxString  conn_name;
	MYSQL* mysql;
public:
	ServerInfo( wxString conn_name = wxEmptyString ){ /*mysql = _InitMySQL(NULL);*/ }
};



class MyUI {
public:
	wxFrame* parent;
	ResultNotebook* result;
	Edit* log;
    wxAuiManager m_mgr;
	bool autocomp;
	wxChoice* currentDb;
	wxChoice* currentFontEncoding;
    wxTreeCtrl* treeview;
    wxStatusBar* s_bar;
	wxToolBar* t_bar;
	MyTaskBarIcon* taskBarIcon;
	EditNotebook* editNotebook;
	UIThread* sqlThread;
	ServerInfo* serverInfo;
	ResultArray array;
	
	void CreateMenuBar();
	void CreateToolBar();
	void CreateTaskBar();
	void CreateStatusBar();
public:
	MyUI(wxFrame* parent,ServerInfo* serverInfo);
	~MyUI();
};

#endif

